package com.yer.note.entity;

import android.net.Uri;

import com.orm.SugarRecord;
import com.orm.dsl.Table;

import java.io.Serializable;
@Table
public class User extends SugarRecord implements Serializable{
    public static User user;
    String name;
    String password;
    String motto;
    String myuuid;
    Uri uri;
    boolean pic;

    public boolean isPic() {
        return pic;
    }

    public void setPic(boolean pic) {
        this.pic = pic;
    }

    public Uri getUri() {
        return uri;
    }

    public void setUri(Uri uri) {
        this.uri = uri;
    }

    public String getMyuuid() {
        return myuuid;
    }

    public void setMyuuid(String myuuid) {
        this.myuuid = myuuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMotto() {
        return motto;
    }

    public void setMotto(String motto) {
        this.motto = motto;
    }

    public User() {
    }

    public User(String name, String password,String motto,String uuid) {
        this.myuuid = uuid;
        this.name = name;
        this.password = password;
        this.motto = motto;
    }

    public User(String name, String password, String myuuid) {
        this.name = name;
        this.password = password;
        this.myuuid = myuuid;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", motto='" + motto + '\'' +
                ", myuuid='" + myuuid + '\'' +
                '}';
    }
}
